package com.liuxing.doctor.mapper;

import com.liuxing.doctor.entity.Department;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface DepartmentMapper {
    int deleteByPrimaryKey(String departmentId);

    int insert(Department record);

    int insertSelective(Department record);

    Department selectByPrimaryKey(String departmentId);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);

    /**
     * 查询科室信息
     * @param doctor_id
     * @return  科室实体
     */
    Department selectDepartmentByDoctorId(String doctor_id);

    /**
     * 根据id查询科室信息
     * @param id
     * @return
     */
    Department selectDepartmentById(String id);
}